package org.flexspeedup.blog.events
{
import flash.events.Event;
/**
 * Deletes the selected project
 */
public class DeleteSelectedProjectEvent extends Event
{
    //--------------------------------------------------------------------------
    //
    //  Class Properties
    //
    //--------------------------------------------------------------------------

    //--------------------------
    // ID
    //--------------------------
    /**
     * Unique id for this event.
     */
    public static const ID:String = "org.flexspeedup.blog.events";
    
    //--------------------------------------------------------------------------
    //
    // Constructor
    //
    //--------------------------------------------------------------------------

    /**
     * Creates a new instance of the <code>org.flexspeedup.blog.events</code> event 
     */    
    public function DeleteSelectedProjectEvent(deleteConfirmed:Boolean = false)
    {
        super(ID, true, true);
        _deleteConfirmed = deleteConfirmed;
    }

    //--------------------------------------------------------------------------
    //
    //  Properties
    //
    //--------------------------------------------------------------------------

    //----------------------------------
    //  deleteConfirmed
    //----------------------------------

    /**
     *  @private
     */
    private var _deleteConfirmed:Boolean;

    /**
     * true if there is user confirmation'
     */
    public function get deleteConfirmed():Boolean
    {
        return _deleteConfirmed;
    }
    
    //--------------------------------------------------------------------------
    //
    //  Overridden Methods - Event
    //
    //--------------------------------------------------------------------------

    /**
     * @inheritdoc flash.events.Event#clone
     */
    override public function clone():Event
    {
        return new DeleteSelectedProjectEvent(deleteConfirmed);
    }
}
}